package com.autohome.wz.business.order.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RuleEngineRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RuleEngineRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andVersionIsNull() {
            addCriterion("version is null");
            return (Criteria) this;
        }

        public Criteria andVersionIsNotNull() {
            addCriterion("version is not null");
            return (Criteria) this;
        }

        public Criteria andVersionEqualTo(String value) {
            addCriterion("version =", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotEqualTo(String value) {
            addCriterion("version <>", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThan(String value) {
            addCriterion("version >", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThanOrEqualTo(String value) {
            addCriterion("version >=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThan(String value) {
            addCriterion("version <", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThanOrEqualTo(String value) {
            addCriterion("version <=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLike(String value) {
            addCriterion("version like", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotLike(String value) {
            addCriterion("version not like", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionIn(List<String> values) {
            addCriterion("version in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotIn(List<String> values) {
            addCriterion("version not in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionBetween(String value1, String value2) {
            addCriterion("version between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotBetween(String value1, String value2) {
            addCriterion("version not between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIsNull() {
            addCriterion("business_id is null");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIsNotNull() {
            addCriterion("business_id is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessIdEqualTo(String value) {
            addCriterion("business_id =", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotEqualTo(String value) {
            addCriterion("business_id <>", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdGreaterThan(String value) {
            addCriterion("business_id >", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdGreaterThanOrEqualTo(String value) {
            addCriterion("business_id >=", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdLessThan(String value) {
            addCriterion("business_id <", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdLessThanOrEqualTo(String value) {
            addCriterion("business_id <=", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdLike(String value) {
            addCriterion("business_id like", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotLike(String value) {
            addCriterion("business_id not like", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIn(List<String> values) {
            addCriterion("business_id in", values, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotIn(List<String> values) {
            addCriterion("business_id not in", values, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdBetween(String value1, String value2) {
            addCriterion("business_id between", value1, value2, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotBetween(String value1, String value2) {
            addCriterion("business_id not between", value1, value2, "businessId");
            return (Criteria) this;
        }

        public Criteria andOrderCodeIsNull() {
            addCriterion("order_code is null");
            return (Criteria) this;
        }

        public Criteria andOrderCodeIsNotNull() {
            addCriterion("order_code is not null");
            return (Criteria) this;
        }

        public Criteria andOrderCodeEqualTo(String value) {
            addCriterion("order_code =", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeNotEqualTo(String value) {
            addCriterion("order_code <>", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeGreaterThan(String value) {
            addCriterion("order_code >", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeGreaterThanOrEqualTo(String value) {
            addCriterion("order_code >=", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeLessThan(String value) {
            addCriterion("order_code <", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeLessThanOrEqualTo(String value) {
            addCriterion("order_code <=", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeLike(String value) {
            addCriterion("order_code like", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeNotLike(String value) {
            addCriterion("order_code not like", value, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeIn(List<String> values) {
            addCriterion("order_code in", values, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeNotIn(List<String> values) {
            addCriterion("order_code not in", values, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeBetween(String value1, String value2) {
            addCriterion("order_code between", value1, value2, "orderCode");
            return (Criteria) this;
        }

        public Criteria andOrderCodeNotBetween(String value1, String value2) {
            addCriterion("order_code not between", value1, value2, "orderCode");
            return (Criteria) this;
        }

        public Criteria andTsIsNull() {
            addCriterion("ts is null");
            return (Criteria) this;
        }

        public Criteria andTsIsNotNull() {
            addCriterion("ts is not null");
            return (Criteria) this;
        }

        public Criteria andTsEqualTo(String value) {
            addCriterion("ts =", value, "ts");
            return (Criteria) this;
        }

        public Criteria andTsNotEqualTo(String value) {
            addCriterion("ts <>", value, "ts");
            return (Criteria) this;
        }

        public Criteria andTsGreaterThan(String value) {
            addCriterion("ts >", value, "ts");
            return (Criteria) this;
        }

        public Criteria andTsGreaterThanOrEqualTo(String value) {
            addCriterion("ts >=", value, "ts");
            return (Criteria) this;
        }

        public Criteria andTsLessThan(String value) {
            addCriterion("ts <", value, "ts");
            return (Criteria) this;
        }

        public Criteria andTsLessThanOrEqualTo(String value) {
            addCriterion("ts <=", value, "ts");
            return (Criteria) this;
        }

        public Criteria andTsLike(String value) {
            addCriterion("ts like", value, "ts");
            return (Criteria) this;
        }

        public Criteria andTsNotLike(String value) {
            addCriterion("ts not like", value, "ts");
            return (Criteria) this;
        }

        public Criteria andTsIn(List<String> values) {
            addCriterion("ts in", values, "ts");
            return (Criteria) this;
        }

        public Criteria andTsNotIn(List<String> values) {
            addCriterion("ts not in", values, "ts");
            return (Criteria) this;
        }

        public Criteria andTsBetween(String value1, String value2) {
            addCriterion("ts between", value1, value2, "ts");
            return (Criteria) this;
        }

        public Criteria andTsNotBetween(String value1, String value2) {
            addCriterion("ts not between", value1, value2, "ts");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeIsNull() {
            addCriterion("rule_result_code is null");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeIsNotNull() {
            addCriterion("rule_result_code is not null");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeEqualTo(String value) {
            addCriterion("rule_result_code =", value, "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeNotEqualTo(String value) {
            addCriterion("rule_result_code <>", value, "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeGreaterThan(String value) {
            addCriterion("rule_result_code >", value, "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeGreaterThanOrEqualTo(String value) {
            addCriterion("rule_result_code >=", value, "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeLessThan(String value) {
            addCriterion("rule_result_code <", value, "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeLessThanOrEqualTo(String value) {
            addCriterion("rule_result_code <=", value, "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeLike(String value) {
            addCriterion("rule_result_code like", value, "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeNotLike(String value) {
            addCriterion("rule_result_code not like", value, "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeIn(List<String> values) {
            addCriterion("rule_result_code in", values, "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeNotIn(List<String> values) {
            addCriterion("rule_result_code not in", values, "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeBetween(String value1, String value2) {
            addCriterion("rule_result_code between", value1, value2, "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeNotBetween(String value1, String value2) {
            addCriterion("rule_result_code not between", value1, value2, "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrIsNull() {
            addCriterion("rule_result_str is null");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrIsNotNull() {
            addCriterion("rule_result_str is not null");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrEqualTo(String value) {
            addCriterion("rule_result_str =", value, "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrNotEqualTo(String value) {
            addCriterion("rule_result_str <>", value, "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrGreaterThan(String value) {
            addCriterion("rule_result_str >", value, "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrGreaterThanOrEqualTo(String value) {
            addCriterion("rule_result_str >=", value, "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrLessThan(String value) {
            addCriterion("rule_result_str <", value, "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrLessThanOrEqualTo(String value) {
            addCriterion("rule_result_str <=", value, "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrLike(String value) {
            addCriterion("rule_result_str like", value, "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrNotLike(String value) {
            addCriterion("rule_result_str not like", value, "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrIn(List<String> values) {
            addCriterion("rule_result_str in", values, "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrNotIn(List<String> values) {
            addCriterion("rule_result_str not in", values, "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrBetween(String value1, String value2) {
            addCriterion("rule_result_str between", value1, value2, "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrNotBetween(String value1, String value2) {
            addCriterion("rule_result_str not between", value1, value2, "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andResultMapIsNull() {
            addCriterion("result_map is null");
            return (Criteria) this;
        }

        public Criteria andResultMapIsNotNull() {
            addCriterion("result_map is not null");
            return (Criteria) this;
        }

        public Criteria andResultMapEqualTo(String value) {
            addCriterion("result_map =", value, "resultMap");
            return (Criteria) this;
        }

        public Criteria andResultMapNotEqualTo(String value) {
            addCriterion("result_map <>", value, "resultMap");
            return (Criteria) this;
        }

        public Criteria andResultMapGreaterThan(String value) {
            addCriterion("result_map >", value, "resultMap");
            return (Criteria) this;
        }

        public Criteria andResultMapGreaterThanOrEqualTo(String value) {
            addCriterion("result_map >=", value, "resultMap");
            return (Criteria) this;
        }

        public Criteria andResultMapLessThan(String value) {
            addCriterion("result_map <", value, "resultMap");
            return (Criteria) this;
        }

        public Criteria andResultMapLessThanOrEqualTo(String value) {
            addCriterion("result_map <=", value, "resultMap");
            return (Criteria) this;
        }

        public Criteria andResultMapLike(String value) {
            addCriterion("result_map like", value, "resultMap");
            return (Criteria) this;
        }

        public Criteria andResultMapNotLike(String value) {
            addCriterion("result_map not like", value, "resultMap");
            return (Criteria) this;
        }

        public Criteria andResultMapIn(List<String> values) {
            addCriterion("result_map in", values, "resultMap");
            return (Criteria) this;
        }

        public Criteria andResultMapNotIn(List<String> values) {
            addCriterion("result_map not in", values, "resultMap");
            return (Criteria) this;
        }

        public Criteria andResultMapBetween(String value1, String value2) {
            addCriterion("result_map between", value1, value2, "resultMap");
            return (Criteria) this;
        }

        public Criteria andResultMapNotBetween(String value1, String value2) {
            addCriterion("result_map not between", value1, value2, "resultMap");
            return (Criteria) this;
        }

        public Criteria andRiskLabelIsNull() {
            addCriterion("risk_label is null");
            return (Criteria) this;
        }

        public Criteria andRiskLabelIsNotNull() {
            addCriterion("risk_label is not null");
            return (Criteria) this;
        }

        public Criteria andRiskLabelEqualTo(String value) {
            addCriterion("risk_label =", value, "riskLabel");
            return (Criteria) this;
        }

        public Criteria andRiskLabelNotEqualTo(String value) {
            addCriterion("risk_label <>", value, "riskLabel");
            return (Criteria) this;
        }

        public Criteria andRiskLabelGreaterThan(String value) {
            addCriterion("risk_label >", value, "riskLabel");
            return (Criteria) this;
        }

        public Criteria andRiskLabelGreaterThanOrEqualTo(String value) {
            addCriterion("risk_label >=", value, "riskLabel");
            return (Criteria) this;
        }

        public Criteria andRiskLabelLessThan(String value) {
            addCriterion("risk_label <", value, "riskLabel");
            return (Criteria) this;
        }

        public Criteria andRiskLabelLessThanOrEqualTo(String value) {
            addCriterion("risk_label <=", value, "riskLabel");
            return (Criteria) this;
        }

        public Criteria andRiskLabelLike(String value) {
            addCriterion("risk_label like", value, "riskLabel");
            return (Criteria) this;
        }

        public Criteria andRiskLabelNotLike(String value) {
            addCriterion("risk_label not like", value, "riskLabel");
            return (Criteria) this;
        }

        public Criteria andRiskLabelIn(List<String> values) {
            addCriterion("risk_label in", values, "riskLabel");
            return (Criteria) this;
        }

        public Criteria andRiskLabelNotIn(List<String> values) {
            addCriterion("risk_label not in", values, "riskLabel");
            return (Criteria) this;
        }

        public Criteria andRiskLabelBetween(String value1, String value2) {
            addCriterion("risk_label between", value1, value2, "riskLabel");
            return (Criteria) this;
        }

        public Criteria andRiskLabelNotBetween(String value1, String value2) {
            addCriterion("risk_label not between", value1, value2, "riskLabel");
            return (Criteria) this;
        }

        public Criteria andAutoStaffIsNull() {
            addCriterion("auto_staff is null");
            return (Criteria) this;
        }

        public Criteria andAutoStaffIsNotNull() {
            addCriterion("auto_staff is not null");
            return (Criteria) this;
        }

        public Criteria andAutoStaffEqualTo(Integer value) {
            addCriterion("auto_staff =", value, "autoStaff");
            return (Criteria) this;
        }

        public Criteria andAutoStaffNotEqualTo(Integer value) {
            addCriterion("auto_staff <>", value, "autoStaff");
            return (Criteria) this;
        }

        public Criteria andAutoStaffGreaterThan(Integer value) {
            addCriterion("auto_staff >", value, "autoStaff");
            return (Criteria) this;
        }

        public Criteria andAutoStaffGreaterThanOrEqualTo(Integer value) {
            addCriterion("auto_staff >=", value, "autoStaff");
            return (Criteria) this;
        }

        public Criteria andAutoStaffLessThan(Integer value) {
            addCriterion("auto_staff <", value, "autoStaff");
            return (Criteria) this;
        }

        public Criteria andAutoStaffLessThanOrEqualTo(Integer value) {
            addCriterion("auto_staff <=", value, "autoStaff");
            return (Criteria) this;
        }

        public Criteria andAutoStaffIn(List<Integer> values) {
            addCriterion("auto_staff in", values, "autoStaff");
            return (Criteria) this;
        }

        public Criteria andAutoStaffNotIn(List<Integer> values) {
            addCriterion("auto_staff not in", values, "autoStaff");
            return (Criteria) this;
        }

        public Criteria andAutoStaffBetween(Integer value1, Integer value2) {
            addCriterion("auto_staff between", value1, value2, "autoStaff");
            return (Criteria) this;
        }

        public Criteria andAutoStaffNotBetween(Integer value1, Integer value2) {
            addCriterion("auto_staff not between", value1, value2, "autoStaff");
            return (Criteria) this;
        }

        public Criteria andHistoryPrizeIsNull() {
            addCriterion("history_prize is null");
            return (Criteria) this;
        }

        public Criteria andHistoryPrizeIsNotNull() {
            addCriterion("history_prize is not null");
            return (Criteria) this;
        }

        public Criteria andHistoryPrizeEqualTo(Integer value) {
            addCriterion("history_prize =", value, "historyPrize");
            return (Criteria) this;
        }

        public Criteria andHistoryPrizeNotEqualTo(Integer value) {
            addCriterion("history_prize <>", value, "historyPrize");
            return (Criteria) this;
        }

        public Criteria andHistoryPrizeGreaterThan(Integer value) {
            addCriterion("history_prize >", value, "historyPrize");
            return (Criteria) this;
        }

        public Criteria andHistoryPrizeGreaterThanOrEqualTo(Integer value) {
            addCriterion("history_prize >=", value, "historyPrize");
            return (Criteria) this;
        }

        public Criteria andHistoryPrizeLessThan(Integer value) {
            addCriterion("history_prize <", value, "historyPrize");
            return (Criteria) this;
        }

        public Criteria andHistoryPrizeLessThanOrEqualTo(Integer value) {
            addCriterion("history_prize <=", value, "historyPrize");
            return (Criteria) this;
        }

        public Criteria andHistoryPrizeIn(List<Integer> values) {
            addCriterion("history_prize in", values, "historyPrize");
            return (Criteria) this;
        }

        public Criteria andHistoryPrizeNotIn(List<Integer> values) {
            addCriterion("history_prize not in", values, "historyPrize");
            return (Criteria) this;
        }

        public Criteria andHistoryPrizeBetween(Integer value1, Integer value2) {
            addCriterion("history_prize between", value1, value2, "historyPrize");
            return (Criteria) this;
        }

        public Criteria andHistoryPrizeNotBetween(Integer value1, Integer value2) {
            addCriterion("history_prize not between", value1, value2, "historyPrize");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNull() {
            addCriterion("is_del is null");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNotNull() {
            addCriterion("is_del is not null");
            return (Criteria) this;
        }

        public Criteria andIsDelEqualTo(Integer value) {
            addCriterion("is_del =", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotEqualTo(Integer value) {
            addCriterion("is_del <>", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThan(Integer value) {
            addCriterion("is_del >", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_del >=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThan(Integer value) {
            addCriterion("is_del <", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThanOrEqualTo(Integer value) {
            addCriterion("is_del <=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelIn(List<Integer> values) {
            addCriterion("is_del in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotIn(List<Integer> values) {
            addCriterion("is_del not in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelBetween(Integer value1, Integer value2) {
            addCriterion("is_del between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotBetween(Integer value1, Integer value2) {
            addCriterion("is_del not between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeIsNull() {
            addCriterion("created_stime is null");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeIsNotNull() {
            addCriterion("created_stime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeEqualTo(Date value) {
            addCriterion("created_stime =", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeNotEqualTo(Date value) {
            addCriterion("created_stime <>", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeGreaterThan(Date value) {
            addCriterion("created_stime >", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeGreaterThanOrEqualTo(Date value) {
            addCriterion("created_stime >=", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeLessThan(Date value) {
            addCriterion("created_stime <", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeLessThanOrEqualTo(Date value) {
            addCriterion("created_stime <=", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeIn(List<Date> values) {
            addCriterion("created_stime in", values, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeNotIn(List<Date> values) {
            addCriterion("created_stime not in", values, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeBetween(Date value1, Date value2) {
            addCriterion("created_stime between", value1, value2, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeNotBetween(Date value1, Date value2) {
            addCriterion("created_stime not between", value1, value2, "createdStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeIsNull() {
            addCriterion("modified_stime is null");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeIsNotNull() {
            addCriterion("modified_stime is not null");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeEqualTo(Date value) {
            addCriterion("modified_stime =", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeNotEqualTo(Date value) {
            addCriterion("modified_stime <>", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeGreaterThan(Date value) {
            addCriterion("modified_stime >", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeGreaterThanOrEqualTo(Date value) {
            addCriterion("modified_stime >=", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeLessThan(Date value) {
            addCriterion("modified_stime <", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeLessThanOrEqualTo(Date value) {
            addCriterion("modified_stime <=", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeIn(List<Date> values) {
            addCriterion("modified_stime in", values, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeNotIn(List<Date> values) {
            addCriterion("modified_stime not in", values, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeBetween(Date value1, Date value2) {
            addCriterion("modified_stime between", value1, value2, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeNotBetween(Date value1, Date value2) {
            addCriterion("modified_stime not between", value1, value2, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andVersionLikeInsensitive(String value) {
            addCriterion("upper(version) like", value.toUpperCase(), "version");
            return (Criteria) this;
        }

        public Criteria andBusinessIdLikeInsensitive(String value) {
            addCriterion("upper(business_id) like", value.toUpperCase(), "businessId");
            return (Criteria) this;
        }

        public Criteria andOrderCodeLikeInsensitive(String value) {
            addCriterion("upper(order_code) like", value.toUpperCase(), "orderCode");
            return (Criteria) this;
        }

        public Criteria andTsLikeInsensitive(String value) {
            addCriterion("upper(ts) like", value.toUpperCase(), "ts");
            return (Criteria) this;
        }

        public Criteria andRuleResultCodeLikeInsensitive(String value) {
            addCriterion("upper(rule_result_code) like", value.toUpperCase(), "ruleResultCode");
            return (Criteria) this;
        }

        public Criteria andRuleResultStrLikeInsensitive(String value) {
            addCriterion("upper(rule_result_str) like", value.toUpperCase(), "ruleResultStr");
            return (Criteria) this;
        }

        public Criteria andResultMapLikeInsensitive(String value) {
            addCriterion("upper(result_map) like", value.toUpperCase(), "resultMap");
            return (Criteria) this;
        }

        public Criteria andRiskLabelLikeInsensitive(String value) {
            addCriterion("upper(risk_label) like", value.toUpperCase(), "riskLabel");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}